<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">      
    <ui:composition template="/directorID/templateDirectorID.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.FindPersonaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            
             <script type="text/javascript">
                $(function(){
                    $(".codigoPerfil option[value!='4']").remove();
                });
            </script>
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditPersonaLabel_cedula}"/>
                    <h:inputText id="cedula" value="#{personaController.cedulaFind}" title="#{bundle.EditPersonaTitle_cedula}" />
                    <h:outputLabel value="#{bundle.EditPersonaLabel_nombres}"/>
                    <h:inputText id="nombres" value="#{personaController.nombreFind}" title="#{bundle.EditPersonaTitle_nombres}" />
                    <h:outputLabel value="#{bundle.EditPersonaLabel_apellidos}" />
                    <h:inputText id="apellidos" value="#{personaController.apellidoFind}" title="#{bundle.EditPersonaTitle_apellidos}" />
                    <h:outputLabel value="#{bundle.EditPersonaLabel_codigoPerfil}" for="codigoPerfil" />
                    <h:selectOneMenu id="codigoPerfil" styleClass="codigoPerfil" value="#{personaController.paraBuscarPerfil}" title="#{bundle.EditPersonaTitle_codigoPerfil}" >
                        <f:selectItems value="#{perfilController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                
                <h:commandLink action="#{personaController.findPersona}" value="#{bundle.FindPersonaLink}"/>
                <br />
                <br />                
                <h:commandLink value="#{bundle.EditPersonaIndexLink}" action="#{personaController.prepareList}" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
